import request from '@/utils/request';

const API = {
    // 获取档案预约记录/获取预约档案详情/审批预约档案
    FIlE_URL: '/v01/biz/appointments/archives'
};

// 档案预约记录
export const reqFileNote = () => request.get(API.FIlE_URL + '?states=0');

// 查询预约档案
export const reqInquireFileNote = (pageNo, pageSize, state, start, end) =>
    request.get(
        `${API.FIlE_URL}?pageNo=${pageNo}&pageSize=${pageSize}&states=${state}&startTime=${start}&endTime=${end}`
    );

// 获取预约档案详情
export const reqFileDetail = id => request.get(`${API.FIlE_URL}/${id}/`);

// 审批预约档案
export const reqReviewFileDetail = data => request.put(API.FIlE_URL, data);
